package com.base.web.core.common;

/**
 * Created with IntelliJ IDEA.
 * Description: HttpClient返回结果封装
 *
 * @Author: rentie
 * @Date: 2018/7/19 11:30
 */
public class HttpClientResult {
    /**
     * 响应状态码
     */
    private Integer code;

    /**
     * 响应数据
     */
    private String content;

    public HttpClientResult() {
    }

    public HttpClientResult(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public HttpClientResult(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "HttpClientResult{" +
                "code=" + code +
                ", content='" + content + '\'' +
                '}';
    }
}